package com.fz.mapper;

import com.fz.entity.Teacher;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by webrx on 2017-08-24.
 */
public interface TeacherMapper {
    public List<Teacher> query();


    //此处的ttt 是引入teachermapper.xml 配置中的ResultMap
    @Select("select * from db_teacher") @ResultMap("ttt")
    public List<Teacher> show();
}
